// @ts-ignore
import React, { useState, useEffect } from 'react';
import { observer } from "mobx-react";

import ModelStore from "../index/model";
import FingerDevice from "../finger_device/model";

import { Button } from "antd"
import '../app.less';
import {Link} from "umi";
import {sys} from "@/utils/sys";
const clients = [];
let serverStatus;
let timer;
const nw = require('nw.gui');

export default observer(() => {

    useEffect(() => {
        //const currentUrl = sys.getQueryParams(window.location.href)
        //console.log(currentUrl)
        console.log(sys.urlToJsonData())

    }, [])

    return (
        <div>
            <h1>Hello, World!{FingerDevice.testText}</h1>
            <button onClick={() => {
            }}>{FingerDevice.testText}</button>

        </div>
    );
});
